package com.mcms.web.control;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractCommandController;

import com.mcms.service.UserService;
import com.mcms.web.LoginCommand;

public class SaveManager extends AbstractCommandController {
	private UserService userService;

	public SaveManager() {
		setCommandClass(LoginCommand.class);
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	protected ModelAndView handle(HttpServletRequest request,
			HttpServletResponse response, Object command, BindException errors)
			throws Exception {
		
		System.out.println("1111111111111111111111111111111111");
		
		/**默认跳转至登陆页面*/
		return new ModelAndView("custom/editCallBackInfo");
	}

}
